package com.ht.feign;

import com.ht.data.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(value = "ht-popularization-service")
public interface PopularizationFeign {

    //科普号收藏查询
    @GetMapping("/collection")
    Result findCollectionByUser(@RequestHeader("AuthToken")String token);

    //科普号主页关注
    @GetMapping("/homePage")
    Result findByUser(@RequestHeader("AuthToken")String token);

    //科普号点赞
    @GetMapping("/praise")
    Result findPraiseByUserId(@RequestHeader("AuthToken")String token);

    //科普号推荐文章
    @GetMapping("/recommended")
    Result findArticle();

}
